{extend name="layout_container" /}

{block name="main"}
<el-row :gutter="12">
    <el-col :span="3" v-for="(item, index) in types" :key="index">
        <el-card shadow="hover" style="text-align: center">
            <div @click="openUrl(item)">
                <img style="width: 80px; height: 80px" :src="item.image" class="image">
                <div>{{item.title}}</div>
            </div>
        </el-card>
    </el-col>
</el-row>
{/block}

{block name="style"}
{__block__}

{/block}
{block name="script"}
<script>
    new Vue({
        el: '#app',
        template: "#appCnt",
        data: function () {
            return {
                types: '{$types}'
            }
        },
        computed: {

        },
        methods: {
            openUrl(item) {
                window.open('' + item.app_name, '_blank')
            }
        },
        created: function () {
        }
    })
</script>
{/block}